package com.ruoyi.system.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("f_users")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Users {
  @TableId(type = IdType.AUTO)
  private Long id;
  private String username;
  private String password;
  private String realName;
  private String phone;
  private String cardId;
  private Date cardExpireEnd;
  private Date cardExpireStart;
  private String businessNumber;
  private String cardExpireNumber;
  private String isBusiness;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(fill = FieldFill.INSERT)
  private Date createdTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Date updatedTime;
  @TableField(exist = false)
  private String token;

}
